package homework.homework01;

public class Architect extends Designer {//架构师类
    private int num;//持有股票数量

    //有参构造
    public Architect(int no, String name, int age, int sal, String lang, int bonus, int num) {
        super(no, name, age, sal, lang, bonus);
        this.num = num;
    }

    public Architect(String lang, int bonus, int num) {
        super(lang, bonus);
        this.num = num;
    }

    public Architect(int bonus, int num) {
        super(bonus);
        this.num = num;
    }

    public Architect(int num) {
        this.num = num;
    }

    //无参构造
    public Architect() {
    }

    //get and set
    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getInfo() {
        return super.getInfo() + " 持有股票数量：" + num;
    }
}
